package com.twxm.breed.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import lombok.Data;

@Data
public class UserDepartment {
    @IsKey
    @TableId
    @Column("用户部门表的主键id")
    private int id;

    @Unique
    @Column(comment = "用户id")
    @IsNotNull
    private int userId;
    private int departmentId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
}
